import request from '@/utils/request'

export function getLinks(params) {
  return request({
    url: '/admin/links',
    method: 'get',
    params
  })
}

export function createLinks(params) {
  return request({
    url: '/admin/links',
    method: 'post',
    data: params
  })
}

export function updateLinks(params) {
  return request({
    url: '/admin/links',
    method: 'put',
    data: params
  })
}

export function deleteLinks(params) {
  return request({
    url: '/admin/links',
    method: 'delete',
    data: params
  })
}
